home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ultimedia 1
/
Ultimedia 1.iso
/
tools
/
grafiktools
/
tsmorph
/
rexx
/
prescript.tsm
< prev
next >
Wrap
Text File
|
1993-06-13
|
2KB
|
45 lines
/* example Prescript script file for TSMorph */
/* This is the default do nothing script */
/* $VER: Prescript_TSM 2.0 (13.6.93)
*/
parse arg Base
Frame = 0 /* current frame number starting from 1 */
TotalFrames = 1 /* total number of frames */
Single = 2 /* Single image warp, 0 for two image morph */
Movement = 3 /* movement * 1024 */
Red1 = 4 /* red portion of image 1 * 1024 */
Green1 = 5 /* green portion of image 1 * 1024 */
Blue1 = 6 /* blue portion of image 1 * 1024 */
Red2 = 7 /* red portion of image 2 * 1024 */
Green2 = 8 /* green portion of image 2 * 1024 */
Blue2 = 9 /* blue portion of image 2 * 1024 */
Produce = 10 /* actually produce output file */
RPlus = 11 /* Add to Red */
GPlus = 12 /* Add to Green */
BPlus = 13 /* Add to Blue */
RMinus = 14 /* Subtract from Red */
GMinus = 15 /* Subtract from Green */
BMinus = 16 /* Subtract from blue */
DX = 17 /* X Skip */
DY = 18 /* Y SKip */
Start = 19 /* Start Frame Number */
/* To read the value of e.g Movement use:
integer_variable = GetValue(Base,Movement)
*/
/* To set the value of e.g. Produce to 0 use:
call StoreValue(Base,Produce,0)
*/
exit
GetValue:Procedure
Parse arg XBase, XAdd
return C2D(IMPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4)),4))
StoreValue:Procedure
Parse arg XBase, XAdd, XVal
call EXPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4)),RIGHT(D2C(XVal),4,D2C(0)),4)
return